﻿// -------------------------------------------------------------------------------------------------
// <copyright file="Director.cs" company="HeterogeneousComputing.com">
// Creative Commons Attribution-ShareAlike 3.0 Unported License
// </copyright>
//
// <author>Jock</author>
//
// <date>05/08/2011</date>
//
// <summary>Implements the producer class</summary>
// -------------------------------------------------------------------------------------------------
namespace TheTVDBScraper
{
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Runtime.Serialization; 
    using System.Text;

    /// -------------------------------------------------------------------------------------------------
    /// <summary> The Job of Director of a TVSeries.  </summary>
    /// <remarks>    The class author was Jock, on the 05/08/2011. </remarks>
    /// -------------------------------------------------------------------------------------------------
    [DataContract(Name = "Director",
        Namespace = "http://www.heterogeneouscomputing.com/TheTVDBScraper", IsReference = true)]
    public class Director : JobRole
    {
        #region Private Fields

            /// <summary> A list of TVEpisodes directed by this Person. </summary>
            private List<TVEpisode> directed = new List<TVEpisode>();
        #endregion

        #region Constructors

            /// -------------------------------------------------------------------------------------------------
            /// <summary>   Initializes a new instance of the Director class. </summary>
            /// <param name="person">   The person. </param>
            /// -------------------------------------------------------------------------------------------------
            public Director(Person person)
                : base(person)
            {
            }

            /// -------------------------------------------------------------------------------------------------
            /// <summary>   Initializes a new instance of the Director class. </summary>
            /// <param name="personName">   Name of the person. </param>
            /// -------------------------------------------------------------------------------------------------
            public Director(string personName)
                : base(personName)
            {
            }

            /// -------------------------------------------------------------------------------------------------
            /// <summary>   Initializes a new instance of the Director class. </summary>
            /// -------------------------------------------------------------------------------------------------
            public Director()
            {
            }
        #endregion
            
        #region Public Properties

            /// -------------------------------------------------------------------------------------------------
            /// <summary>   Gets a List of the TVEpisodes directed by this Person. </summary>
            /// <value> The TVEpisode List. </value>
            /// -------------------------------------------------------------------------------------------------
            public List<TVEpisode> Directed
            {
                get
                {
                    return this.directed;
                }
            }

        #endregion
    }
}

/// -------------------------------------------------------------------------------------------------
// End of Director.cs
/// -------------------------------------------------------------------------------------------------
